package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.OrderAirportserviceMapper;
import com.ktgj.service.domain.OrderAirportservice;
import com.ktgj.service.service.IOrderAirportserviceService;

/**
 * 机场服务订单
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class OrderAirportserviceServiceImpl implements IOrderAirportserviceService 
{
    @Autowired
    private OrderAirportserviceMapper orderAirportserviceMapper;

    /**
     * 查询机场服务订单

     * 
     * @param orderId 机场服务订单
ID
     * @return 机场服务订单

     */
    @Override
    public OrderAirportservice selectOrderAirportserviceById(Long orderId)
    {
        return orderAirportserviceMapper.selectOrderAirportserviceById(orderId);
    }

    /**
     * 查询机场服务订单
列表
     * 
     * @param orderAirportservice 机场服务订单

     * @return 机场服务订单

     */
    @Override
    public List<OrderAirportservice> selectOrderAirportserviceList(OrderAirportservice orderAirportservice)
    {
        return orderAirportserviceMapper.selectOrderAirportserviceList(orderAirportservice);
    }

    /**
     * 新增机场服务订单

     * 
     * @param orderAirportservice 机场服务订单

     * @return 结果
     */
    @Override
    public int insertOrderAirportservice(OrderAirportservice orderAirportservice)
    {
        orderAirportservice.setCreateTime(DateUtils.getNowDate());
        return orderAirportserviceMapper.insertOrderAirportservice(orderAirportservice);
    }

    /**
     * 修改机场服务订单

     * 
     * @param orderAirportservice 机场服务订单

     * @return 结果
     */
    @Override
    public int updateOrderAirportservice(OrderAirportservice orderAirportservice)
    {
        orderAirportservice.setUpdateTime(DateUtils.getNowDate());
        return orderAirportserviceMapper.updateOrderAirportservice(orderAirportservice);
    }

    /**
     * 批量删除机场服务订单

     * 
     * @param orderIds 需要删除的机场服务订单
ID
     * @return 结果
     */
    @Override
    public int deleteOrderAirportserviceByIds(Long[] orderIds)
    {
        return orderAirportserviceMapper.deleteOrderAirportserviceByIds(orderIds);
    }

    /**
     * 删除机场服务订单
信息
     * 
     * @param orderId 机场服务订单
ID
     * @return 结果
     */
    @Override
    public int deleteOrderAirportserviceById(Long orderId)
    {
        return orderAirportserviceMapper.deleteOrderAirportserviceById(orderId);
    }
}
